package com.wll.aop.exception;

/**
 * @author ：wanglulu
 * @date ： 2021/11/16 16:41
 * @description：自定义异常
 * @version: 1.0
 */
public class ParamIsNullException extends RuntimeException {

    private final String parameterName;

    private final String parameterType;

    public String getParameterName() {
        return parameterName;
    }

    public String getParameterType() {
        return parameterType;
    }


    public ParamIsNullException(String parameterName, String parameterType) {
        super("");
        this.parameterName = parameterName;
        this.parameterType = parameterType;
    }

    public String getMessage() {
        return "请求参数 " + this.parameterName + " 不能为空 !";
    }

}
